class Https{
  https_req({url, data={}, method="GET"}){
    return new Promise((resolve, reject) => {
      wx.request({
        url,
        data,
        method,
        success:res => {
          resolve(res)
        },
        fail:err => {
          reject(err)
        }
      })
    })
  }
}

export default Https;